package com.bwhx.eruler.service.casdilly.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bwhx.eruler.bean.Page;
import com.bwhx.eruler.bean.casdilly.SizeRule;
import com.bwhx.eruler.bean.hodo.HodoSizeRule;
import com.bwhx.eruler.dao.casdilly.SizeRuleDAO;

@Service
public class SizeRuleServiceImpl implements com.bwhx.eruler.service.casdilly.SizeRuleService {
	
	@Autowired
	SizeRuleDAO sizeRulerDAO;
	
	

	public List<SizeRule> findBySizeRuleID(String attribute) {
		return sizeRulerDAO.findBySizeRuleID(attribute);
	}



	@Override
	public List<SizeRule> list(Page p) {
		return sizeRulerDAO.list(p);
	}



	@Override
	public Integer count(SizeRule SizeRule) {
		return sizeRulerDAO.count(SizeRule);
	}



	@Override
	public void insert(SizeRule SizeRule) {
		sizeRulerDAO.insert(SizeRule);
		
	}



	@Override
	public void update(SizeRule sizeRule) {
		sizeRulerDAO.update(sizeRule);
		
	}



	@Override
	public SizeRule findByName(String getsRName) {
		return sizeRulerDAO.findByName(getsRName);
	}



	@Override
	public void delete(SizeRule entity) {
		// TODO Auto-generated method stub
		
	}



	@Override
	public List<HodoSizeRule> hodoFindBySizeRuleID(String attribute) {
		return sizeRulerDAO.hodoFindBySizeRuleID(attribute);
	}



	
}
